package ge.gen.eBdgt.vo;

import org.apache.log4j.Logger;

public class VOIdFactory {

    private static Logger logger = Logger.getLogger(VOIdFactory.class);

    private static final ThreadLocal<VOIdContainer> currentVOId = new ThreadLocal<VOIdContainer>();

    private VOIdFactory() {
    }

    public static int getNextVoId() {
        return currentVOId.get().getNextVoId();
    }

    public static void setVOIdContainer(final VOIdContainer voIdContainer) {
        currentVOId.set(voIdContainer);        
    }
}
